import { ObjectId } from "mongodb";
import { BaseRequest, BaseResponse, BaseConf } from "../base";

export interface ReqEndEdit extends BaseRequest {
    _id:ObjectId,
    name:string,
    startTime:Date,
    endTime:Date,
    language:string,
    questions:{
        description:string,
        input:string,
        output:string,
        score:number
    }[]
}

export interface ResEndEdit extends BaseResponse {

}

export const conf: BaseConf = {
  needRole: "teacher",
  needLogin: true,
};
